package demo2;

public class Test2 {
    public static void main(String[] args) {
     A a1 = ()-> System.out.println(1);

     a1.func();
    }
}

interface A{
    void func();

}
